﻿@using Microsoft.AspNetCore.Mvc.Rendering;
@{
    ViewData["Title"] = ".NETCore最方便的ORM";
}

<!-- 侧边菜单 -->
<div class="layui-side layui-side-menu">
    <div class="layui-side-scroll">
        <div class="layui-logo" lay-href="">
            <span>FsCms管理</span>
        </div>
        <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
            <li class="layui-nav-item layui-nav-itemed">
                <a href="javascript:;" lay-tips="主页" lay-direction="2">
                    <i class="layui-icon layui-icon-home"></i>
                    <cite>主页</cite>
                    <span class="layui-nav-more"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd class="layui-this"><a href="javascript:void(0);" pageid="page_1" datajson="{}" path="/Admin/Article/Index">文档内容</a></dd>
                    <dd><a href="javascript:void(0);" pageid="page_2" datajson="{}" path="/Admin/ArticleType/Index">文档分类</a></dd>
                    <dd><a href="#" target="_blank">查看文档</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;" lay-tips="开发示例" lay-direction="2">
                    <i class="layui-icon layui-icon-home"></i>
                    <cite>权限管理</cite>
                    <span class="layui-nav-more"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:void(0);" pageid="page_11" datajson="{}" path="/Admin/SysUser/Index">用户管理</a></dd>
                    <dd><a href="javascript:void(0);" pageid="page_22" datajson="{}" path="/Admin/SysRole/Index">角色管理</a></dd>
                    <dd><a href="javascript:void(0);" pageid="page_33" datajson="{}" path="/Admin/SysMenu/Index">菜单管理</a></dd>
                </dl>
            </li>

            <li class="layui-nav-item">
                <a href="javascript:;" lay-tips="开发示例" lay-direction="2">
                    <i class="layui-icon layui-icon-home"></i>
                    <cite>开发示例</cite>
                    <span class="layui-nav-more"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:void(0);" pageid="page_4" datajson="{}" path="/Admin/Article/Index">普通列表</a></dd>
                    <dd><a href="javascript:void(0);" pageid="page_5" datajson="{}" path="/Admin/ArticleType/Index">左树右列表</a></dd>
                    <dd><a href="javascript:void(0);" pageid="page_6" datajson="{}" path="/Admin/ArticleType/Index">树列表</a></dd>
                    <dd><a href="javascript:void(0);" pageid="page_7" datajson="{}" path="/Admin/ArticleType/Index">统计报表</a></dd>
                    <dd><a href="javascript:void(0);" pageid="page_8" datajson="{}" path="/Admin/ArticleType/Index">登录</a></dd>
                    <dd><a href="javascript:void(0);" pageid="page_9" datajson="{}" path="/Admin/ArticleType/Index">系统设置</a></dd>
                </dl>
            </li>
            <span class="layui-nav-bar" style="top: 28px; height: 0px; opacity: 0;"></span>
        </ul>
    </div>
</div>

<!-- 页面标签 -->
<div class="layadmin-pagetabs" id="LAY_app_tabs">
    <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
    <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
    <div class="layui-icon layadmin-tabs-control layui-icon-down">
        <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
            <li class="layui-nav-item" lay-unselect>
                <a href="javascript:;"></a>
                <dl class="layui-nav-child layui-anim-fadein">
                    <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                    <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                    <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
        <ul class="layui-tab-title" id="fscms_tabsheader">
            <li tab-id="home_index_01" datajson="{}" path="/Admin/Home/Index"><i class="layui-icon layui-icon-home"></i></li>
            @*<li tab-id="home/homepage1.html" datajson="{}" path="/Admin/ArticleType/Index" class="temp_tab layui-this"><span>主页一</span><i class="layui-icon layui-unselect layui-tab-close">ဆ</i></li>
                <li tab-id="home/homepage1.html" datajson="{}" path="/Admin/ArticleType/Index" class="temp_tab"><span>主页二</span><i class="layui-icon layui-unselect layui-tab-close">ဆ</i></li>*@
        </ul>
    </div>
</div>

<div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 10px;" id="page_content">
        <div id="page_home_index_01">

            首页布局

        </div>
    </div>
</div>
<script>
    freejs.tabMenu.init();
    $(".layui-nav-item>dl>dd>a").click(function () {
        var path_item = $(this).attr("path");
        var path_json = $(this).attr("datajson");
        var pageid = $(this).attr("pageid");
        var title = $(this).html();
        var index = freejs.showLoading({ msg: "数据加载中......" });
        var options = {
            url: path_item, paramters: $.parseJSON(path_json), loadIndex: index, elm: "page_content",
            pageid: pageid,
            title: title
        };
        freejs.loadMenu(options);
        //如果出现长时间未关闭，定时关闭loading
        setTimeout(function () {
            if (index >= 0) freejs.closeLoading(index);
        }, 5000);
    });

</script>
